﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FPSO.Models.Constant
{
    public class TaskQueueConstant
    {
        public static readonly int LOAD_TASK_1_ID = 1;
        public static readonly int LOAD_TASK_2_ID = 2;
        public static readonly int UNLOAD_TASK_1_ID = 3;

        public static readonly string LOAD_TASK_1_NAME = "装载任务1";
        public static readonly string LOAD_TASK_2_NAME = "装载任务2";
        public static readonly string UNLOAD_TASK_1_NAME = "外输&倒舱";

        private static readonly Dictionary<int, string> IdToNameDic;
        static TaskQueueConstant()
        {
            IdToNameDic = new Dictionary<int, string>();
            IdToNameDic.Add(LOAD_TASK_1_ID, LOAD_TASK_1_NAME);
            IdToNameDic.Add(LOAD_TASK_2_ID, LOAD_TASK_2_NAME);
            IdToNameDic.Add(UNLOAD_TASK_1_ID, UNLOAD_TASK_1_NAME);
        }

        public static string GetTaskQueueName(int taskQueueId)
        {
            return IdToNameDic[taskQueueId];
        }
    }
}
